<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$da = stream_socket_client("tcp://www.editorialmegabyte.com:80", $errno, $errstr, 30);
if (!$da) {
    echo "$errstr ($errno)<br />\n";
} else {
    fwrite($da, "GET / HTTP/1.0\r\nHost: www.editorialmegabyte.com\r\nAccept: */*\r\n\r\n");
    while (!feof($da)) {
        echo fgets($da, 1024);
    }
    fclose($da);
}
?>
